<%@ page language="java" contentType="text/html; charset=UTF-8"
	pageEncoding="UTF-8"%>
<%@ page import="java.util.List"%>

<%@ taglib prefix="c" uri="http://java.sun.com/jsp/jstl/core"%>
<%@ taglib uri="http://java.sun.com/jsp/jstl/functions" prefix="fn"%>
<%@ taglib prefix="fmt" uri="http://java.sun.com/jsp/jstl/fmt"%>
<%@ taglib prefix="form" uri="http://www.springframework.org/tags/form"%>
<!DOCTYPE html PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN" "http://www.w3.org/TR/html4/loose.dtd">
<html>
<head>
<meta http-equiv="Content-Type" content="text/html; charset=UTF-8">
<title>Pods</title>
</head>
<body>
	<h1>Current pods</h1>
	<table border=1>

		<c:forEach var="pod" items="${pods}">
			<tr>
				<td>name</td>
				<td>domain name</td>
			</tr>
			<tr>
				<td>${pod.name}</td>
				<td>${pod.domainName}</td>
			</tr>
		</c:forEach>
	</table>
	<h1>Add pod</h1>
	<form:form action="/newpod" commandName="pod">
		<table border=1>
			<tr>
				<td>Name:</td>
				<td><form:input path="name" /></td>
			</tr>
			<tr>
				<td>Domain name:</td>
				<td><form:input path="domainName" /></td>
			</tr>
			<tr>
				<td>Template:</td>
				<td><form:input path="template" /></td>
			</tr>
			<tr>
				<td></td>
				<td><input type="submit" /></td>
			</tr>
		</table>
	</form:form>
</body>

</body>
</html>